package base.exa17;

public class ContainsStudy {
    public static void main(String[] args) {
        String tom="student";
        boolean a,b;
        a = tom.contains("stu");//的值是true
        b = tom.contains("ol");//的值是false

        System.out.println("a: "+a);
        System.out.println("b: "+b);
    }
}
